<?php
namespace Stock\Model;
use Think\Model;
/**
 * Created by PhpStorm.
 * User: wangli
 * Date: 15-5-6
 * Time: 下午8:18
 */
class TradeModel extends Model{
    protected $trueTableName = 'money_dzjy';
    function __construct(){
    }

    //这个需要增加按照日期选择也就是时间段选择
    public  function  ShareChange($params){
        $order = $params['order'];
        $date = $params['date'];
        //$date = date("Y-m-d H:i:s",$params['date']);
        $dzjy = M('money_dzjy');
        $data = $dzjy->where("unix_timestamp(date) > $date")->field('*')->order("$order desc")->limit(10)->select();
        return $data;

    }
}